package com.iran.calculator.simpleFactory;

public class RebateCash extends SuperCash {

    private double moneyRebate = 1.0d;

    public RebateCash(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double acceptCash(double money) {
        return money * moneyRebate;
    }
}
